export default {
	data() {
		return {
			orderId: '',
			goodsList: [],
		};
	},
	onLoad(options) {
		this.orderId = options.orderId
	},
	methods: {
		async getResult() {
			var res = await this.$get('server/index/getresult', {
				orderid: this.orderId,
			});
			if (res.errcode != 0) {
				this.$toast(res.errmsg);
				return;
			}
			this.goodsList = res.list
		},
		onBack() {
			uni.navigateBack()
		},
		async onUnlike() {
			this.$navTo('pages/store/store')
		}
	}
};
